﻿@inherits System.Web.Mvc.WebViewPage<Pikapika.Models.NovelChapter>

@{
    ViewBag.Title = "NovelChapter - Create";
    
}

	@{Html.EnableClientValidation();}

    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.NovelVolumeId)
            </div>
            <div class="editor-field">
				@Model.NovelVolumeId
				@Html.HiddenFor(model => model.NovelVolumeId)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.ChapterContent)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.ChapterContent)
                @Html.Partial("_ChapterContentRichTextEditor", 
                              "ChapterContent", 
                              new ViewDataDictionary(this.ViewData) { {"IncludeTextArea", false} })
                @Html.ValidationMessageFor(model => model.ChapterContent)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.SortIndex)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.SortIndex)
                @Html.ValidationMessageFor(model => model.SortIndex)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.PostUserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.PostUserName)
                @Html.ValidationMessageFor(model => model.PostUserName)
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    }

    <div>
        @Html.ActionLink("Back to List", "Index", new { novelVolumeId = Model.NovelVolumeId })
    </div>

@section Head {
	
    @Html.Script(StandardLibraries.Jquery)

}
